package com.itheima.day01.managerTest.controller;

import com.itheima.day01.managerTest.domain.Student;
import com.itheima.day01.managerTest.service.StudentService;

public class StudentController extends BaseStudentController {
    private StudentService studentService = new StudentService();

    // 键盘录入学生信息
    public Student inputStudentIfo(String id){
        System.out.println("请输入学生姓名");
        String name = sc.next();
        System.out.println("请输入学生年龄");
        int age = sc.nextInt();
        System.out.println("请输入学生生日");
        String birthday = sc.next();
        Student stu = new Student();
        stu.setId(id);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }
}
